package com.ruoyi.asset.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维修保养计划对象 maintenance_plan
 * 
 * @author ruoyi
 * @date 2023-04-06
 */
public class MaintenancePlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计划编号 */
    private String id;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String assetNumber;

    /** 计划类型 */
    @Excel(name = "计划类型")
    private String planType;

    /** 计划日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planDate;

    /** 下次计划日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次计划日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextPlanDate;

    /** 计划周期（天） */
    @Excel(name = "计划周期", readConverterExp = "天=")
    private Long planPeriod;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setAssetNumber(String assetNumber) 
    {
        this.assetNumber = assetNumber;
    }

    public String getAssetNumber() 
    {
        return assetNumber;
    }
    public void setPlanType(String planType) 
    {
        this.planType = planType;
    }

    public String getPlanType() 
    {
        return planType;
    }
    public void setPlanDate(Date planDate) 
    {
        this.planDate = planDate;
    }

    public Date getPlanDate() 
    {
        return planDate;
    }
    public void setNextPlanDate(Date nextPlanDate) 
    {
        this.nextPlanDate = nextPlanDate;
    }

    public Date getNextPlanDate() 
    {
        return nextPlanDate;
    }
    public void setPlanPeriod(Long planPeriod) 
    {
        this.planPeriod = planPeriod;
    }

    public Long getPlanPeriod() 
    {
        return planPeriod;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("assetNumber", getAssetNumber())
            .append("planType", getPlanType())
            .append("planDate", getPlanDate())
            .append("nextPlanDate", getNextPlanDate())
            .append("planPeriod", getPlanPeriod())
            .toString();
    }
}
